package com.victor9ac.mashup.elasticsearch.converter;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.xcontent.XContentBuilder;

import com.victor9ac.mashup.api.Commentaries;


public interface ElasticSearchConverter {


	/**
	 * ES to MashupDomain
	 * 
	 * @param searchResponse
	 * @return
	 * @throws ParseException
	 */
	
	Object convert(SearchResponse searchResponse) throws ParseException;
	
	
	/**
	 * object Domain to ES
	 */
	public List<XContentBuilder> buildJson(Object obj) 
			throws IOException;
	
	
}
